package com.liuya.db;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public interface ColumnAdapter extends java.io.Serializable  {
    public void setPreparedStatement(PreparedStatement pstmt, int paramIndex, Object o) throws SQLException;

    public void readResultSet(ResultSet rs, int columnIndex, Object o) throws SQLException;

    public void readResultSet(ResultSet rs, String columnName, Object o) throws SQLException;

    public Object extractFieldValue(Object o);
}
